<%@ include file="header.jsp" %>
<script type="text/javascript">
			function setCurrentMenu(){
			}
</script>
 <%
		if(session.getAttribute("name")!=null){
					response.sendRedirect("ShowQuestions");
		}
 %>
<span class="welcome-head">
		Create Account
		<hr style="height:0px;border-bottom:1px thin gray;margin-top:-2px;" />
	</span>
	<br/>
<% 
Map<String,String> map=null;
if(request.getAttribute("exceptionmap")!=null){
map=(HashMap<String,String>)request.getAttribute("exceptionmap"); 

}
%>
<div class="container">
         
            <section>				
                <div id="container_demo" >
                    <!-- hidden anchor to stop jump http://www.css3create.com/Astuce-Empecher-le-scroll-avec-l-utilisation-de-target#wrap4  -->
                  

                    <div id="wrapper">
 						<div id="login" class="animate form">
                            <form  action="RegisterUser" method="post" autocomplete="on"> 
                                <h1> Sign up </h1> 
                                <p> 
                                    <label for="emailsignup" class="youmail" data-icon="e" > Your email</label>
                                    <input maxlength="90" id="emailsignup" name="emailsignup" required="required" type="email" placeholder="mysupermail@mail.com"/> 
                                    <label style="color: red">
		                                  <%if(map!=null && map.get("emailsignup")!=null){
												out.print(map.get("emailsignup"));
											} %>
                                    </label>
                                </p>
                                <p> 
                                    <label for="usernamesignup" class="uname" data-icon="u">Your name</label>
                                    <input maxlength="30" id="usernamesignup" name="usernamesignup" required="required" type="text" placeholder="Kushal Sharma" />
                                	<label style="color: red">
		                                  <%if(map!=null && map.get("usernamesignup")!=null){
												out.print(map.get("usernamesignup"));
											} %>
                                    </label>
                                </p>
                                
                               <%--  <p> 
                                    <label for="passwordsignup" class="youpasswd" data-icon="p">Your password </label>
                                    <input id="passwordsignup" name="passwordsignup" required="required" type="password" placeholder="eg. X8df!90EO"/>
                                	<label style="color: red">
		                                  <%if(map!=null && map.get("passwordsignup")!=null){
												out.print(map.get("passwordsignup"));
											} %>
                                    </label>
                                </p>
                                <p> 
                                    <label for="passwordsignup_confirm" class="youpasswd" data-icon="p">Please confirm your password </label>
                                    <input id="passwordsignup_confirm" name="passwordsignup_confirm" required="required" type="password" placeholder="eg. X8df!90EO"/>
                                </p> --%>
                                <p> 
									<input type="submit" value="Sign Up"style="cursor: pointer;width:115px;padding-left:10px;margin-left:310px "/>
								</p>
                                <p class="change_link">  
									Already a member ?
									<a href="login.jsp" class="to_register"> Go and log in </a>
								</p>
                            </form>
                        </div>
					         </div>
                </div>  
            </section>
        </div>
<%@ include file="footer.jsp" %>